package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.base.query.CreditTransferQueryObject;
import cn.wolfcode.p2p.business.domain.CreditTransfer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CreditTransferMapper {

    int insert(CreditTransfer record);

    CreditTransfer selectByPrimaryKey(Long id);

    int updateByPrimaryKey(CreditTransfer record);

    int queryForCount(CreditTransferQueryObject qo);

    List<CreditTransfer> queryForList(CreditTransferQueryObject qo);

    List<CreditTransfer> selectCredittransfer(@Param("bidIds") Long[] bidIds, @Param("bidUserId") Long bidUserId, @Param("transferState") boolean transferState);

    int selectForCount(CreditTransferQueryObject qo);

    List<CreditTransfer> selectCreditTransferForList(CreditTransferQueryObject qo);

    CreditTransfer selectCreditTransferByBidIdAndState(@Param("bidId") Long bidId, @Param("bidrequestState") int bidrequestState);
}
